<template>
  <div class="app">
    <router-view></router-view>
    <ul class="nav">
      <li>
        <router-link :to="{ name: 'shouye' }">首页</router-link>
      </li>
      <li>
        <router-link :to="{ path: '/fenlei' }">分类</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.app {
  font-size: 100px;
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 150px;
    background-color: pink;
    li {
      .router-link-active {
        color: red;
      }
    }
  }
}
</style>